package com.hyts.infodb.file;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;


@SpringBootApplication
@EntityScan("com.hyts.infodb.file")
public class FileApplication implements WebServerFactoryCustomizer<TomcatServletWebServerFactory>{

    public static void main(String[] args) {
        SpringApplication.run(FileApplication.class, args);
    }

    /* (非 Javadoc)
     * <b>TODO(方法功能的描述)-  customize </b>
     * <p>TODO(这里用一句话描述这个方法的作用)</p>
     * @param factory
     * @see org.springframework.boot.web.server.WebServerFactoryCustomizer#customize(org.springframework.boot.web.server.WebServerFactory)  
     * @exception
     */ 
    @Override
    public void customize(TomcatServletWebServerFactory factory) {
        factory.setPort(8881);
        // TODO Auto-generated method stub
        
    }

   
    
}
